package com.joolun.mall.domain;

import java.util.List;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章管理对象 article
 * 
 * @author www.joolun.com
 * @date 2021-10-18
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    private String id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章描述 */
    @Excel(name = "文章描述")
    private String description;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 删除标志 */
    private String delFlag;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String categoryId;

    /** 文章封面 */
    @Excel(name = "文章封面")
    private String poster;

    /** 是否热门 */
    private String hot;

    public String getHot() {
        return hot;
    }

    public void setHot(String hot) {
        this.hot = hot;
    }

    public String getPoster() {
        return poster;
    }

    public void setPoster(String poster) {
        this.poster = poster;
    }

    /** 文章分类信息 */
    private ArticleCategory articleCategoryList;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCategoryId(String categoryId) 
    {
        this.categoryId = categoryId;
    }

    public String getCategoryId() 
    {
        return categoryId;
    }

    public ArticleCategory getArticleCategoryList()
    {
        return articleCategoryList;
    }

    public void setArticleCategoryList(ArticleCategory articleCategoryList)
    {
        this.articleCategoryList = articleCategoryList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("content", getContent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("categoryId", getCategoryId())
            .append("articleCategoryList", getArticleCategoryList())
            .append("poster", getPoster())
            .toString();
    }
}
